<div class="slide-dialog-header">
	<h2>{{title}}</h2>
	<div class="slide-dialog-toolbar">
		<ul>
			<li><span class="ui-btn slide-dialog-close" ng-click="close(false)"><i class="fa fa-remove"></i></span></li>
		</ul>
	</div>
</div>
<div class="slide-dialog-body x-slide-dialog-body">
	<div class="x-data-panel-fixed">
		<form name="form" novalidate="novalidate" ng-submit="submit(form.$valid);">
			<div class="x-data-panel-body">
				<div class="data-form">
					<dl>
						<dt><span class="x-star">*</span>标题：</dt>
						<dd>
							<div class="x-fieldset"><input type="text" name="title" ng-model="data.title" class="x-ipt" placeholder="请输入标题" required /></div>
							<div class="x-error" ng-if="interacted(form.title)" ng-messages="form.title.$error">
                                <span ng-message="required">标题不能为空</span>
                            </div>
						</dd>
					</dl>
					<dl>
						<dt><span class="x-star">*</span>To：</dt>
						<dd>
							<div class="x-fieldset"><input type="text" name="name" ng-model="names" class="x-ipt" placeholder="请选择收件人" required ng-readOnly="true" /><div class="x-fieldset-tools"><span class="btn-label" ng-click="select('names')">选择用户</span></div></div>
							<div class="x-error" ng-if="interacted(form.name)" ng-messages="form.name.$error">
                                <span ng-message="required">收件人不能为空</span>
                            </div>
						</dd>
					</dl>
					<dl>
						<dt><span class="x-star">*</span>内容：</dt>
						<dd>
							<textarea name="content" ng-model="data.content" class="x-ipt" rows="8" placeholder="请输入内容" data-ckeditor required></textarea>
							<div class="x-error" ng-if="interacted(form.content)" ng-messages="form.content.$error">
                                <span ng-message="required">内容不能为空</span>
                            </div>
						</dd>
					</dl>
				</div>
			</div>
			<div class="x-data-panel-footer">
				<button class="dialog-button cancel-button" type="button" ng-click="close(false)">取消</button><button class="dialog-button" type="submit" ng-disabled="formDisabled">提交</button>
			</div>
		</form>
	</div>
</div>